<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
    <title>简单化休闲服饰</title>
    <%= stylesheet_link_tag "default" , :media => "all" %>
    
    <% # 集成tinymce %>
    <% # Include TinyMCE before other JS to avoid problems %>
    <%= javascript_include_tiny_mce_if_used %>
    <%= tiny_mce if using_tiny_mce? %>
    
    <%= javascript_include_tag :defaults%>
    <!--highslide的配置-->
    <%= javascript_include_tag "highslide/highslide.js" %>
    <script type="text/javascript">
      
      // remove the registerOverlay call to disable the controlbar
      hs.registerOverlay(
      {
      thumbnailId: null,
      overlayId: 'controlbar',
      position: 'bottom right',
      hideOnMouseOut: true
      }
      );
      
      hs.graphicsDir = '/javascripts/highslide/graphics/';
      hs.outlineType = 'rounded-white';
    </script>
    <%= stylesheet_link_tag "highslide" , :media => "all" %>
    <!--集成extjs-->
    <%#= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
    <%#= javascript_include_tag "ext/adapter/prototype/prototype.js" %>
    <%#= javascript_include_tag "ext/adapter/prototype/scriptaculous.js" %>
    <%#= javascript_include_tag "ext/adapter/prototype/effects.js" %>
    <%#= javascript_include_tag "ext/adapter/prototype/ext-prototype-adapter.js" %>
    <%#= javascript_include_tag "ext/ext-all-debug.js" %>
    
  </head>
  <body>
    <div id="admin">
      <%=admin_info%>
    </div>
    <!-- start header -->
    <div id="header">
      <div id="logo">
        <h1>
          <a href="/index">简单化<sup>休闲服饰</sup></a>
        </h1>
      </div>
      <div id="menu">
        <ul>
          <li><a href="/index"><%=_("Home")%></a></li>
          <li class="active"><a href="/album"><%=_("Album")%></a></li>
          <li><a href="/blog"><%=_("Blog")%></a></li>
          <li><a href="/guestbook"><%=_("GuestBook")%></a></li>
          <li><a href="/contact"><%=_("Contact Us")%></a></li>
        </ul>
      </div>
    </div>
    <!-- end header -->
    <!-- start page -->
    <div id="page">
      <!-- start content -->
      <div id="content">
        <% if flash[:notice]%>
            <div id="notice"><%=flash[:notice]%> </div>
            <% end %>
            <%= yield :layout %>
          </div>
          <!-- end content -->
          <!-- start sidebar -->
          <div id="sidebar">
            <ul>
              <li>
                <h2><b>相册管理</b></h2>
                <ul>
                  <li><%=link_to "列表",{:controller=>"/admin/album",:action=>"index"}%></li>
                  <li><%=link_to "新增",{:controller=>"/admin/album",:action=>"new_album"}%></li>
                </ul>
                <h2><b>博客分类</b></h2>
                <ul>
                  <li><%=link_to "列表",{:controller=>"/admin/category",:action=>"index"}%></li>                                
                  <li><%=link_to "新增",{:controller=>"/admin/category",:action=>"new"}%></li>
                </ul>
                <h2><b>博客管理</b></h2>
                <ul>
                  <li><%=link_to "列表",{:controller=>"/admin/blog",:action=>"index"}%></li>
                  <li><%=link_to "新增",{:controller=>"/admin/blog",:action=>"new"}%></li>
                </ul>
              </li>
            </ul>
          </div>
          <!-- end sidebar -->
          <div style="clear: both;">&nbsp;</div>
        </div>
        <!--highslide controller-->
        <div id="controlbar" class="highslide-overlay controlbar">
          <a href="#" class="previous" onclick="return hs.previous(this)" title="Previous (left arrow key)"></a>
          <a href="#" class="next" onclick="return hs.next(this)" title="Next (right arrow key)"></a>
          <a href="#" class="highslide-move" onclick="return false" title="Click and drag to move"></a>
          <a href="#" class="close" onclick="return hs.close(this)" title="Close"></a>
        </div>
        <!-- end page -->
        <!-- start footer -->
        <div id="footer">
          <p id="legal">
            (c) 2007 简单化服饰（http://jiandanhua.cn）
            CSS模板由
            <a href="http://www.nodethirtythree.com/">NodeThirtyThree</a> 
            和<a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.
            设计
          </p>
        </div>
        <!-- end footer -->
      </body>
    </html>